<%@page import="com.erp.dto.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	User user = (User) session.getAttribute("user");
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet"
	href="<%=basePath%>script/jquery-ui-1.10.4/themes/base/jquery.ui.all.css">
<script src="<%=basePath%>script/jquery-ui-1.10.4/jquery-1.10.2.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.core.js"></script>
<script
	src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.widget.js"></script>
<script
	src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.button.js"></script>
<script src="<%=basePath%>script/script.js"></script>
<%-- <link rel="stylesheet" href="script/jquery-ui-1.10.4/demos/demos.css">
<link rel="stylesheet" href="<%=basePath%>style/style.css"> --%>
<style type="text/css">

/* .options_container{
	display: inline;
	position: relative;
}

.options_item{
	border: 1px solid black;
	padding: 5px;
	margin: 0;
	display: none;
	position: absolute;
	white-space: nowrap;
	background-color: white;
	width: 47px;
	overflow :visible ;
}

.options_item li{
	
} */
</style>
<script>
	$(function() {
		init_top_page();
	});
</script>
</head>
<body>
	<%
		if (user != null) {
	%>
	<div class="options_container">
		当前用户：<a href="javascript:;" id="btn_user"><%=user.getName()%></a> <br />
		上次登录地点：<%=user.getLoginLocation()%><br /> <a
			href="user_logout.action" target="_parent"
			style="position: fixed;right: 5px;bottom: 5px;">退出登录</a> <a
			href="user_modifyPasswordPage.action" id="a_modify_password">修改密码</a>
		<!-- <ul class="options_item">
			<li></li>
			<li></li>
		</ul> -->
	</div>
	<%
		} else {
			out.write("未登录");
		}
	%>
</body>
</html>